from zyuekao.Base import Base
from selenium.webdriver.common.by import By

class Page(Base):
    #登录断言
    dy_login=(By.XPATH,'//*[@id="auto-id-1760325049500"]')
    def login_dy(self):
        self.find_element(self.dy_login).text()
    #进入框架
    kuangjia_login=(By.XPATH,'/html/body/div[3]/div[3]/div[1]/div/div[3]/div[1]/div[2]/iframe')
    def login_kuangjia(self):
        self.iframe(self.kuangjia_login)
    #输入邮箱号
    yxiang_send=(By.XPATH,'//input[@name="email" and @data-type="email"]')
    def send_yxiang(self):
        self.send_keys(self.yxiang_send,'lfc2314336117@163.com')
    #输入密码
    password_send=(By.NAME,'password')
    def send_password(self):
        self.send_keys(self.password_send,'LFc20041117')
    #点击登录按钮
    button_login=(By.ID,'dologin')
    def login_button(self):
        self.click(self.button_login)
